package Day16;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class Demo04 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("C:\\Java\\1.txt");
        //abcdefghijklmnopqrstuvwxyz  读取的数
        byte[] b = new byte[10];
        int r = fis.read(b);
        System.out.println(new String(b));
        r =  fis.read(b);
        System.out.println(new String(b));
        r = fis.read(b);
        System.out.println(new String(b));
        fis.close();
        /*abcdefghij
          klmnopqrst
          uvwxyzqrst
        */

//        int r = fis.read(b);
//        System.out.println(new String(b,0,r));
//        r =  fis.read(b);
//        System.out.println(new String(b,0,r));
//        r = fis.read(b);
//        System.out.println(new String(b,0,r));
//        fis.close();
        //abcdefghij
        //klmnopqrst
        //uvwxyz
    }
}
